package com.ibm.cloud.banking.customer.repository;


import com.ibm.cloud.banking.customer.entity.CustomerCertificate;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ICustomerCertificateMapper {
    int deleteByPrimaryKey(String customerNo);

    int insert(CustomerCertificate record);

    int insertSelective(CustomerCertificate record);

    CustomerCertificate selectByPrimaryKey(String customerNo);

    int updateByPrimaryKeySelective(CustomerCertificate record);

    int updateByPrimaryKey(CustomerCertificate record);

    CustomerCertificate selectByUnionKeys(@Param("idType") String idType,
                                                   @Param("idNo") String idNo,
                                                   @Param("name") String name);

    Boolean deleteByUnionKeys(@Param("idNo")String idNo,
                              @Param("idType")String idType,
                              @Param("name")String name);
}